home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
-
- if "%1" == "" goto NEEDDRIVE
- if %1 == c: goto MKDIR
- if %1 == C: goto MKDIR
- if %1 == d: goto MKDIR
- if %1 == D: goto MKDIR
- if %1 == e: goto MKDIR
- if %1 == E: goto MKDIR
- if %1 == f: goto MKDIR
- if %1 == F: goto MKDIR
- if %1 == g: goto MKDIR
- if %1 == G: goto MKDIR
- if %1 == h: goto MKDIR
- if %1 == H: goto MKDIR
- if %1 == i: goto MKDIR
- if %1 == I: goto MKDIR
-
- :INVALID
- echo "%1" is an invalid drive name. Please enter your startup drive's
- echo letter followed by a colon":"
- echo For example:
- goto Example
-
- :NEEDDRIVE
- echo Please specify your startup drive to install MOUSE, for example:
- goto Example
-
- :EXAMPLE
- echo
- echo install c:
- goto End
-
- :MKDIR
- cls
- echo ╔════════════════════════════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Mouse Installation ║
- echo ║ ║
- echo ║ ║
- echo ║ This program will install the mouse drivers into ║
- echo ║ a directory called "Mouse" on your startup drive %1. ║
- echo ║ If you do not wish to do this press Ctrl-C now. ║
- echo ║ ║
- echo ║ ║
- echo ╚════════════════════════════════════════════════════════════════════╝
- echo
- pause
- echo
-
- if exist %1\mouse\*.* goto DIREXIST
- mkdir %1\mouse
- goto COPYFILES
-
- :DIREXIST
- echo WARNING: The directory %1\MOUSE already exists. Press Ctrl-C
- echo now if you don't want to overwrite the contents of
- echo that directory.
- echo
- pause
- echo
-
- :COPYFILES
- echo Copying files to %1\MOUSE...
- copy *.* %1\mouse >nul
-
- if not exist %1\mouse\mouse.com goto InstallError
- if not exist %1\mouse\mouse.sys goto InstallError
- if not exist %1\mouse\manual.txt goto InstallError
-
- cls
- echo ╔══════════════════════════════════════════════════════════════════════╗
- echo ║ ║
- echo ║ MOUSE has been successfully installed onto your hard disk. ║
- echo ║ INSTALL will update your autoexec.bat file. Your current ║
- echo ║ AUTOEXEC.BAT file will be renamed AUTOEXEC.BAK. If you don't ║
- echo ║ want INSTALL to modify your autoexec.bat file press Ctrl-C now. ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════════════════════════════╝
- pause
- echo Updating AUTOEXEC.BAT.....
- %1
- cd\
- if not exist autoexec.bat goto NoAutoexec
- copy autoexec.bat autoexec.bak
- copy autoexec.bat + %1\mouse\mouse.bat temp.bat > NUL
- del autoexec.bat
- ren temp.bat autoexec.bat
-
- echo ╔══════════════════════════════════════════════════════════════════════╗
- echo ║ ║
- echo ║ Please reboot your computer. Your AUTOEXEC.BAT file will ║
- echo ║ install the mouse driver for you.You should run the TEST ║
- echo ║ program to test your mouse. ║
- echo ║ ║
- echo ║ To view the on-disk user's guide, change to your MOUSE ║
- echo ║ directory and type: ║
- echo ║ ║
- echo ║ BROWSE MANUAL.TXT ║
- echo ║ ║
- echo ║ and press ENTER. ║
- echo ║ ║
- echo ╚══════════════════════════════════════════════════════════════════════╝
- goto End
-
- :NOAUTOEXEC
- echo Your %1 drive root directory does not contain the batch file
- echo AUTOEXEC.BAT. This file is executed by DOS when you power up your
- echo computer. Please consult your DOS manual for information on
- echo how to create one.
- goto END
-
- :INSTALLERROR
- echo ERROR: Installation of MOUSE into %1\MOUSE was unsuccessful.
- echo The mouse drivers were not copied to your startup
- echo drive %1. This might be because %1 is full.
- echo Mouse drivers need at least 34K of free disk space
-
- :End
-